import {RegisterBodyType} from "./type";
import request from "./index";

// 注册
export const register = (data: RegisterBodyType) => {
    return request.post("/api/pc/user/register", data)
}

// 登录
export const login = (data: RegisterBodyType) => {
    return request.post("/api/pc/user/login", data)
}

//退出登录
export const exit = () => {
    return request.get("/api/pc/user/exit");
}
